package cn.silver.module.workflow.controller;

import cn.silver.framework.mybatis.controller.BusController;
import cn.silver.module.workflow.bean.ModelBean;
import cn.silver.module.workflow.domain.WfModel;
import cn.silver.module.workflow.param.ModelParam;
import cn.silver.module.workflow.service.IWfModelService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhouxiaobo
 */
@Validated
@RestController
@RequiredArgsConstructor
@Tag(name = "流程管理-流程模型管理")
@RequestMapping("/workflow/model")
public class WfModelController extends BusController<IWfModelService, WfModel, ModelParam, ModelBean> {

    @Override
    @Resource
    public void setBaseService(IWfModelService baseService) {
        this.setTitle("流程管理-流程模型管理");
        this.setCode("workflow:model");
        this.setPermission("workflow:model");
        this.baseService = baseService;
    }
}
